/**
 * 记录相关
 *
 */
import request from '@/utils/request'

/**
 * @method getOrderStats
 * @description 获取订单统计
 */
export function getOrderStats(data) {
  return request({
    url: '/booking_admin/booking_manage/query_order_stats',
    method: 'post',
    data: data
  })
}

// 获取记录列表
export function getOrderRecord(data) {
  return request({
    url: '/booking_admin/booking_manage/query_order_list',
    method: 'post',
    data: data
  })
}

// 获取记录详情
export function getOrderDetail(params) {
  return request({
    url: '/booking_admin/booking_manage/get_order_detail',
    method: 'get',
    params: params
  })
}
// 获取退款列表
export function qryRefundRecord(data) {
  return request({
    url: '/order_mobile/trade/qryRefundRecord',
    method: 'post',
    data
  })
}

// 更改订单状态
export function changeOrderStatus(data) {
  return request({
    url: '/booking_admin/booking_manage/change_order_status',
    method: 'post',
    data: data
  })
}

// 修改订单备注
export function modifyOrderRemark(data) {
  return request({
    url: '/booking_admin/booking_manage/modify_order_remark',
    method: 'post',
    data: data
  })
}
// 查询订单商品报表
export function queryOrderProducts(data) {
  return request({
    url: '/wcanyin_admin/manage/queryOrderProducts',
    method: 'post',
    data: data
  })
}
// 查询订单商品统计报表
export function querySalesNumAndSalesAmount(data) {
  return request({
    url: '/wcanyin_admin/manage/querySalesNumAndSalesAmount',
    method: 'post',
    data: data
  })
}
// 导出商品统计报表
export function exportCanyinOrderProduct(data) {
  return request({
    url: '/statistics_admin/task/exportCanyinOrderProduct',
    method: 'post',
    data: data
  })
}
// 获取商品分类
export function queryClassifyAll(data) {
  return request({
    url: '/wcanyin_admin/manage/queryClassifyAll',
    method: 'get',
    data: data
  })
}
